package com.acdc.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物联网模块对象 iot_module
 * 
 * @author acdc
 * @date 2025-08-12
 */
public class IotModule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** IMEI号 */
    @Excel(name = "IMEI号")
    private String imei;

    /** 固件版本号 */
    @Excel(name = "固件版本号")
    private String fvn;

    /** 硬件版本号 */
    @Excel(name = "硬件版本号")
    private String hv;

    /** 开关状态 */
    @Excel(name = "开关状态")
    private Integer pwrSta;

    /** 物联网模块心跳记录信息 */
    private List<IotModuleHeartbeat> iotModuleHeartbeatList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setImei(String imei) 
    {
        this.imei = imei;
    }

    public String getImei() 
    {
        return imei;
    }

    public void setFvn(String fvn) 
    {
        this.fvn = fvn;
    }

    public String getFvn() 
    {
        return fvn;
    }

    public void setHv(String hv) 
    {
        this.hv = hv;
    }

    public String getHv() 
    {
        return hv;
    }

    public void setPwrSta(Integer pwrSta) 
    {
        this.pwrSta = pwrSta;
    }

    public Integer getPwrSta() 
    {
        return pwrSta;
    }

    public List<IotModuleHeartbeat> getIotModuleHeartbeatList()
    {
        return iotModuleHeartbeatList;
    }

    public void setIotModuleHeartbeatList(List<IotModuleHeartbeat> iotModuleHeartbeatList)
    {
        this.iotModuleHeartbeatList = iotModuleHeartbeatList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("imei", getImei())
            .append("fvn", getFvn())
            .append("hv", getHv())
            .append("pwrSta", getPwrSta())
            .append("iotModuleHeartbeatList", getIotModuleHeartbeatList())
            .toString();
    }
}
